export const globalPropertiesPlugin = {
  appContext: undefined,
  globalProperties: undefined,
  install(app: any) {
    this.appContext = app;
    this.globalProperties = app.config.globalProperties
  },
};

export function useGlobalProperties(): any {
  return globalPropertiesPlugin.globalProperties
}

export function useAppContext(): any {
  return globalPropertiesPlugin.appContext
}